package com.ithiema.utils;

import javax.servlet.http.Cookie;

public class CookieUtils {
    public static Cookie findCookieByName(String cookieName,Cookie[] cookies) {
        if (cookies!=null){
            for (Cookie c : cookies) {
                if (cookieName.equals(c.getName())){
                    return c;
                }

            }
        }
        return null;
    }
}
